import http from "../utils/http.js";
import {baseUploadUrl} from "@/hook/setting";
const defaultService = "/tourism/v1/sys-service";
// 文化
 const culturalService = "/tourism/v1/culturalTourism-service";
//  公共音频地址抛出
export const audioUrl = "/api/tourism/v1/culturalTourism-service/ai/getAudioByAudioPath";
export default {
    // 查询省级行政区划集合
    getProvinceList: (param) => http.get(`${defaultService}/admin/sys/division/getProvinceList`, param),
    getCityList: (param) => http.get(`${defaultService}/admin/sys/division/getCityList`, param),
    getCategoryList: (param) => http.get(`${culturalService}/tourismCategory/getCategoryList`, param),
    getInfoByKeyword: (param) => http.post(`${culturalService}/ai/getInfoByKeyword`, param),
    // 语音附件上传
    fileUpload: (param) => http.filePost(`${culturalService}/ai/getInfoBySound`, param),
    // 已登录
    // 游前规划
    createOrUpdatetourist: (param) => http.post(`${culturalService}/touristRoute/createOrUpdate`, param),
    createOrUpdatefoodTour: (param) => http.post(`${culturalService}/foodTourRoute/createOrUpdate`, param),
    createOrUpdateAccommodation: (param) => http.post(`${culturalService}/travelAccommodation/createOrUpdate`, param),
    createOrUpdatePracticalTips: (param) => http.post(`${culturalService}/practicalTips/createOrUpdate`, param),
    // 查询旅游路线规划详情
    getTouristRouteDetail: (param) => http.get(`${culturalService}/touristRoute/getTouristRouteById`, param),
    // 查询美食旅游路线详情
    getFoodTourRouteDetail: (param) => http.get(`${culturalService}/foodTourRoute/getFoodTourRouteById`, param),
    // 查询交通住宿规划详情
    getTravelAccommodationDetail: (param) => http.get(`${culturalService}/travelAccommodation/getTravelAccommodationById`, param),
    // 查询实用贴士规划详情
    getPracticalTipsDetail: (param) => http.get(`${culturalService}/practicalTips/getPracticalTipsById`, param),

    // 根据旅游路线规划信息查询路线信息-ai
    getTouristRouteList: (param) => http.post(`${culturalService}/ai/getTouristRouteInfo`, param),
    // 根据美食路线规划信息查询美食信息
    getFoodTourRouteList: (param) => http.post(`${culturalService}/ai/getFoodTourRouteInfo`, param),
    // 根据交通住宿规划信息查询住宿信息
    getTravelAccommodationList: (param) => http.post(`${culturalService}/ai/getTravelAccommodationInfo`, param),
    // 根据实用贴士规划信息查询贴士信息
    getPracticalTipsList: (param) => http.post(`${culturalService}/ai/getPracticalTipsInfo`, param),
    //游中体验
    getAttractionNavigationList: (param) => http.get(`${culturalService}/attractionNavigation/getAttractionNavigationList`, param),
    getSightInfoBySight: (param) => http.post(`${culturalService}/ai/getSightInfoBySight`, param),
//     服务投诉添加或更新
    createOrUpdateServiceComplaints: (param) => http.post(`${culturalService}/serviceComplaint/createOrUpdate`, param),
//     查询服务投诉详情
    getServiceComplaintsDetail: (param) => http.get(`${culturalService}/serviceComplaint/getServiceComplaintById`, param),
// 撤销服务投诉
    cancelServiceComplaints: (param) => http.delete(`${culturalService}/serviceComplaint/revokeServiceComplaintById`, param),

// 游后记录
// 通过图片生成文字
    getTextDescriptionByImage: (param) => http.post(`${culturalService}/ai/getTextDescriptionByImage`, param),
//     通过图片和文字描述生成视频
    getVideoDescriptionByImageAndText: (param) => http.post(`${culturalService}/ai/getVideoByImageAndText`, param),
    // 图片美化
    imageBeautificationUrl: (param) => http.post(`${culturalService}/ai/getImageByEnhancement`, param),
    // 图片转文描述
    getTextDescriptionByImageUrl: (param) => http.post(`${culturalService}/ai/getTextDescriptionByImage`, param),

};